const proxy = require('http-proxy-middleware')

module.exports = function(app) {
  app.use('/Legang', proxy({
    target: 'http://laienli.cn:8080',
    changeOrigin: true,
    
  }))
  app.use(
    '/api',
    proxy({
      target: 'http://localhost:9000',
      changeOrigin: true,
    })
  )
  
  app.use(
    '/socket',
    proxy({
      target: 'http://localhost:9001',
      changeOrigin: true,
    })
  );

  
}